package com.cy.personer.biz.impl;

import com.cy.personer.bean.UserTransaction;
import com.cy.personer.biz.UserTransactionBiz;
import com.cy.personer.ceptor.OperationLog;
import com.cy.personer.mapper.UserTransactionMapper;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;


@Service
public class UserTransactionBizImpl implements UserTransactionBiz {
    @Resource
    private UserTransactionMapper userTransactionMapper;

    //添用户自主充值记录
    @Override
    public boolean addUserTransaction(UserTransaction userTransaction) {
        return userTransactionMapper.addUserTransaction(userTransaction);
    }

    //查询用户Id
    @Override
    public UserTransaction findUserTransaction(String ordeNumber) {
        return userTransactionMapper.findUserTransaction(ordeNumber);
    }

    //更新用户自主充值记录

    @Override
    public boolean updataUserTransaction(UserTransaction userTransaction) {
        return userTransactionMapper.updataUserTransaction(userTransaction);
    }
}
